export default {
  data () {
    return {
      tableLoading: true,
      pageNo: 1,
      pageSize: 1,
      total: 0
    }
  },
  created () {
    this.searchData()
  },
  methods: {
    handlePageSizeChange (value) {
      this.pageNo = 1
      this.pageSize = value
      this.getTableData()
    },
    handlePageChange (value) {
      this.pageNo = value
      this.getTableData()
    },
    searchData () {
      this.pageNo = 1
      this.getTableData()
    },
    getTableData () {
      this.tableLoading = true
      this.tableLoading = false
    },
    indexMethod (index) {
      return index + 1 + (this.pageNo - 1) * this.pageSize
    }
  }
}
